//数据展示  http://localhost:8080/m1
// const router = require("koa-router")();
const Router = require("koa-router");
const router = new Router();
const MembersModel  = require("../../models/Members");
// 查询数据库
router.get("/m1",async ctx=>{
    var data = await MembersModel.find({});
    console.log(data);
    await ctx.render("index",{arr:data});
})
module.exports = router;